bind -M insert \ca beginning-of-line
bind -M insert \ce end-of-line

bind -M insert \cn down-or-search
bind -M insert \cp up-or-search

bind -M insert \cj down-or-search
bind -M insert \ck up-or-search

bind -M insert \cf forward-char
bind -M insert \cb backward-char
bind -M insert \cr history-pager
bind -M insert \ch backward-delete-char

bind -M insert \cg cancel
bind -M insert \cx\ce edit_command_buffer

# bind -M visual -e \cv
# bind -M insert -e \cv
# bind -e \cv

function stay_and_execute
    commandline -f execute
    commandline -f execute
end
bind -M insert \co stay_and_execute
bind -M insert \cs history-search-forward
